package com.jhgsys.internal.sypq.service;

import com.jhgsys.internal.sypq.entity.TaskAttach;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 任务所需附体 Service接口
 *
 * @author ganjun
 * @date 2024-11-18 10:54:56
 */
public interface ITaskAttachService extends IService<TaskAttach> {
    /**
     * 查询（分页）
     * @author ganjun
     * @date 2024-11-18 10:54:56
     * @param request QueryRequest
     * @param taskAttach taskAttach
     * @return IPage<TaskAttach>
     */
    IPage<TaskAttach> findTaskAttachPage(QueryRequest request, TaskAttach taskAttach);

    /**
     * 查询（所有）
     * @author ganjun
     * @date 2024-11-18 10:54:56
     * @param taskAttach taskAttach
     * @return List<TaskAttach>
     */
    List<TaskAttach> findTaskAttachList(TaskAttach taskAttach);

    /**
    * 根据ID查询
    * @author ganjun
    * @date 2024-11-18 10:54:56
    * @param id
    * @return TaskAttach
    */
    TaskAttach findTaskAttachById(String id);

    /**
     * 新增
     * @author ganjun
     * @date 2024-11-18 10:54:56
     * @param taskAttach taskAttach
     */
    boolean createTaskAttach(TaskAttach taskAttach);

    /**
     * 修改
     * @author ganjun
     * @date 2024-11-18 10:54:56
     * @param taskAttach taskAttach
     */
    boolean updateTaskAttach(TaskAttach taskAttach);

    /**
     * 逻辑删除
     * @author ganjun
     * @date 2024-11-18 10:54:56
     * @param taskAttach taskAttach
     * @param taskAttachIds taskAttachIds
     */
    boolean deleteTaskAttach(TaskAttach taskAttach,String taskAttachIds);

    /**
    * 物理删除
    * @author ganjun
    * @date 2024-11-18 10:54:56
    * @param taskAttachIds taskAttachIds
    */
    boolean physicallyDeleteTaskAttach(String taskAttachIds);

    boolean physicallyDeleteByTaskcode(String  taskcode);
}
